2608393ea586ced5885c18ba2be82f37d37805ba,src/main/java/gov/nysenate/openleg/service/spotcheck/senatesite/SenateSiteBillCheckService.java,SenateSiteBillCheckService,checkMultiSponsors,#BillAmendmentView#SenateSiteBill#SpotCheckObservation#,194
Before Change
}
private void checkMultiSponsors(BillAmendmentView content, SenateSiteBill reference, SpotCheckObservation<BillId> observation) {
List<String> contentMultiSponsors =content.getMultiSponsors().getItems().stream()
.map(MemberView::getShortName)
.collect(Collectors.toList());
checkCollection(contentMultiSponsors, reference.getMultiSponsors(), observation, BILL_MULTISPONSOR);
}
After Change
}
private void checkMultiSponsors(BillAmendmentView content, SenateSiteBill reference, SpotCheckObservation<BillId> observation) {
List<String> contentMultiSponsors = Optional.ofNullable(content.getMultiSponsors())
.map(ListView::getItems)
.orElse(ImmutableList.of())
.stream()
.map(MemberView::getShortName)
.collect(Collectors.toList());
checkCollection(contentMultiSponsors, reference.getMultiSponsors(), observation, BILL_MULTISPONSOR);
}